package com.gree.service.imp;

import com.gree.dao.TrsT003ServiceRequestDao;
import com.gree.entity.TrsT003ServiceRequest;
import com.gree.service.ITrsT003ServiceRequestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("requestService")
public class TrsT003ServiceRequestServiceImpl implements
		ITrsT003ServiceRequestService {
	@Autowired
	private TrsT003ServiceRequestDao trsT003ServiceRequestDao;

	public TrsT003ServiceRequestDao getTrsT003ServiceRequestDao() {
		return this.trsT003ServiceRequestDao;
	}

	public void setTrsT003ServiceRequestDao(
			TrsT003ServiceRequestDao trsT003ServiceRequestDao) {
		this.trsT003ServiceRequestDao = trsT003ServiceRequestDao;
	}

	/** 会计凭证编号不存在，存取得会计凭证 */

	@Override
	public TrsT003ServiceRequest getRequestBysrvReqStatus(
			TrsT003ServiceRequest obj) {
		return trsT003ServiceRequestDao.getRequestBysrvReqStatus(obj);
	}

	/** 更改服务请求状态 */
	@Override
	public Integer updateNonEmptyServicetById(TrsT003ServiceRequest obj) {
		return trsT003ServiceRequestDao.updateNonEmptyServicetById(obj);
	}

	/** 验证服务请求编号 */
	@Override
	public Integer checkSrvReqNo(String srvReqNo) {
		return trsT003ServiceRequestDao.checkSrvReqNo(srvReqNo);
	}

}